<%@ page language="java" import="java.util.*" pageEncoding="utf-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<html>
	<head>
		<base href="<%=basePath%>">
		<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
		<title>登录</title>
		<script type="text/javascript" src="gko100/front/validateForm/jquery-1.4.2.min.js"></script>
		<link href="gko100/front/css/login.css" rel="stylesheet" type="text/css" />
		<link href="gko100/front/validateForm/css/formitem.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript" src="gko100/front/validateForm/jquery.form-1.0.1.js"></script>
		<script type="text/javascript" src="gko100/front/validateForm/jquery.form.valid-1.0.1.js"></script>
		<script type="text/javascript" src="gko100/front/validateForm/area/areaLinkAge.js"></script>
		<script type="text/javascript" src="gko100/front/validateForm/Calendar.js"></script>
		<script type="text/javascript">

		$(function(){
			$("#username").username();
			$("#password").password();
			$("#authcode").authcode();

		});
		
        function changePic(){
            document.getElementById("picValidate").src = "pic_validate.jsp?time=" + Math.random();
        }

	</script>
		
	</head>
	<body>
		<div>
		<s:include value="/WEB-INF/gko100/front/html/head.jsp"></s:include>
		</div>
		<div class="l_bg">
		<div class="l_con">
      		<h2><s:text name="user.userLogin" /></h2>
      		<form action="front/userLogin_validate.action" id="testform" method="post">
				<s:if test="tip!=null">
					<span><s:property value="tip" /></span>
				</s:if>
				<table class="formtable">
					
					<tr>
						<th>
							<label class="form-item-title"><s:text name="user.username" /></label>
						</th>
						<td>
							<input name="userVo.name" id="username" type="text" required="true"  valid='username'/>
						</td>
					</tr>
					<tr>
						<th>
							<label class="form-item-title"><s:text name="user.password" /></label>
						</th>
						<td>
							<input type="password" name="userVo.password" id="password" required="true"  valid='password'/>
						</td>
						
					</tr>
					<tr>
						<th>
							<label class="form-item-title"><s:text name="user.picValidate" /></label>
						</th>
						<td>
							<input type="text" name="picValidate" id="authcode" required="true"  valid='authcode' />
						</td>
						<td>
							<img id="picValidate" onclick="changePic()"  alt="<s:text name='user.clickRefresh' />" title="<s:text name='user.clickRefresh' />" src="gko100/back/pic_validate.jsp" Class="yz_img"/>
						</td>
					</tr>

					<tr>
						<td colspan="2" style="text-align:center;">
							<input type="submit" value="<s:text name='user.login' />" />
							<input type="reset" value="<s:text name='user.reset' />" />
						</td>
					</tr>
					
				</table>
			</form>
      		<script>fInitUser();fSetLogType();fVoidIE5();</script>
      		<div class="reg">
      			<span><s:text name="user.notUser" /></span>
      			<a class="btn" href="front/register.action" target="_blank" id="lnkReg">
      				<s:text name="user.signNow" />
      			</a>
      		</div>
    	</div>
    	</div>
  		<div class="l_end">
  		<s:include value="/WEB-INF/gko100/front/html/foot.jsp"></s:include>  
		</div>
	</body>
</html>